<template>
<div>
    <router-link to="/ShowAdminFinanInfo" style="margin-right: 20px;">用户理财明细</router-link>
    <router-link to="/ShowAdminBorrowMoney" style="margin-right: 20px;">用户借款明细</router-link>
    <br>
    <h2 style="text-align: center;">用户投资项目列表</h2>
    <InvestCommon v-slot="info">
        <a href="#" @click="UserInvest(info.id)">用户投资明细</a>
    </InvestCommon>
</div>
</template>
    
<script setup lang="ts">
import InvestCommon from '../Invests/InvestCommon.vue'
import { useRouter } from 'vue-router';
    
const router=useRouter();
    
//通过路由跳转到投资项目信息修改页面
const UserInvest=(Iid:number)=>{
    router.push({
        name:"ShowAllUserInvestInfo",
        params:{
            Iid:Iid
        }
    })
}
</script>